<?php
import('@.Common.WhereMachine');
class AccountWhereMachine extends WhereMachine{
    public function uid($uid){
        if (is_array($uid)){
            $this->map['uid']= array('IN', $uid);
        } else{
            $this->map['uid']= $uid;
        }
    }
    public function role($role){
        $this->map['role']= $role;
    }
    public function name($name){
    //TODO: 空格分割
        $this->map['name']= array('LIKE', "%$name%");
    }
}
?>